﻿
namespace Huirui.Cavan.Application.MainBoundedContext.CacheModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public sealed class CacheAttribute : Attribute
    {
        private bool _cached = false;
        private string _key = "";

        public bool Cached
        {
            get
            {
                return _cached;
            }
            set
            {
                _cached = value;
            }
        }

        public string Key
        {
            get
            {
                return _key;
            }
            set
            {
                _key = value;
            }
        }

        public CacheAttribute(bool cached,string key)
        {
            _cached = cached;
            _key = key;
        }

        public CacheAttribute()
        {
        }
    }
}
